import { openKeyBoard,killKeyBoard } from '../utils/keyboard';
export default {
  methods:{
    onFocusKeyBoard(e){
      if(window._keyboard) return;
      window._keyboard=true;
      openKeyBoard(() =>{
        window._keyboard = false;
        if (e && e.target) {
          e.target.blur();
        }
        window._PKeyboard = null;
      });
    },

    closeKeyBoard() {
      killKeyBoard();
    }
  }
}